package edu.sctu.jsoup.service;

import edu.sctu.jsoup.entity.StudentEntity;
import edu.sctu.jsoup.repo.StudentRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {

    @Autowired
    private StudentRepo studentRepo;

    public void run(){

        StudentEntity hu=new StudentEntity();
        hu.setName("hu");
        hu.setAge(19);

        studentRepo.save(hu);
    }
}
